import request from '@/utils/request'

// 查询管家列表
export function butlerList(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/butlerList.html',
        method: 'post',
        data: query
    })
}

//管家新增
export function createButler(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/createButler.html',
        method: 'post',
        data: query
    })
}

//管家删除
export function deleteButler(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/deleteButler.html',
        method: 'post',
        data: query
    })
}

//绑定管家医院
export function bindButlerHospital(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/bindButlerHospital.html',
        method: 'post',
        data: query
    })
}

//管家详情
export function butlerDetail(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/butlerDetail.html',
        method: 'post',
        data: query
    })
}

//管家编辑
export function updateButler(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/updateButler.html',
        method: 'post',
        data: query
    })
}

//管家冻结
export function freezeButler(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/freezeButler.html',
        method: 'post',
        data: query
    })
}

//管家日志
export function butlerLogs(query) {
    return request({
        url: '/com.mmk.reservation.api.AdminButlerProvider/1.0.0/butlerLogs.html',
        method: 'post',
        data: query
    })
}